import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页获取物料核价列表
  GetPageGoodsPriceAdjustment(data?: any) {
    return request({
      url: '/api/GoodsPriceAdjustment/GetPageGoodsPriceAdjustment',
      method: 'post',
      data,
    });
  },
  //新建物料核价单
  AddGoodsPriceAdjustment(data?: any) {
    return request({
      url: '/api/GoodsPriceAdjustment/AddGoodsPriceAdjustment',
      method: 'post',
      data,
    });
  },
  //编辑物料核价单
  UpdateGoodsPriceAdjustment(data?: any) {
    return request({
      url: '/api/GoodsPriceAdjustment/UpdateGoodsPriceAdjustment',
      method: 'post',
      data,
    });
  },
  //获取核价单详情
  GetGoodsPriceAdjustmentByCode(data?: any) {
    return request({
      url: '/api/GoodsPriceAdjustment/GetGoodsPriceAdjustmentByCode',
      method: 'post',
      data,
    });
  },
  //修改核价单状态
  UpdateGoodsPriceAdjustmentState(data?: any) {
    return request({
      url: '/api/GoodsPriceAdjustment/UpdateGoodsPriceAdjustmentState',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
